package com.css.fxfzysx.modules.vabStructure.entity;

import com.css.fxfzysx.modules.vabStructure.utils.DoubleDecimal;
import com.css.fxfzysx.modules.vabStructure.utils.UnitTranslate;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "czt_crs_calroofbeam_result")
@Entity
public class CztCrsCalRoofbeamResult {
    @Id
    @Column(name = "cal_id")
    private String calId;

    @Column(name = "floor_num")
    private Integer floorNum ;


    @Column(name = "column_id")
    private String columnId ;
    /**
     * 柱编号
     */
    @Column(name = "column_num")
    private String columnNum;

    //梁编号
    @Column(name = "beam_num")
    private String beamNum;
    /**
     * 左梁的有效高度
     */
    @Column(name = "beam_left_heigth")
    @UnitTranslate
    @DoubleDecimal
    private double beamLeftHeigth;
    /**
     * 右梁的有效高度
     */
    @Column(name = "beam_right_height")
    @UnitTranslate
    @DoubleDecimal
    private double beamRightHeight;


    /**
     * 梁界面宽
     */
    @Column(name = "beam_sectionwidth")
    @UnitTranslate
    @DoubleDecimal
    private double beamSectionWidth;
    /**
     * 梁截面高
     */
    @Column(name = "beam_sectionheight")
    @UnitTranslate
    @DoubleDecimal
    private double beamSectionHeight;
    /**
     * 左梁受拉区纵筋面积As（mm^2）
     */
    @Column(name = "beam_left_as_pull")
    @UnitTranslate(value = 1000000)
    @DoubleDecimal
    private double leftAsPull;
    /**
     * 左梁受压区纵筋面积As（mm^2）
     */
    @Column(name = "beam_left_as_push")
    @UnitTranslate(value = 1000000)
    @DoubleDecimal
    private double leftAsPush;


    /**
     *右梁受拉区纵筋面积As（mm^2）
     */
    @Column(name = "beam_right_as_push")
    @UnitTranslate(value = 1000000)
    @DoubleDecimal
    private double rigthAsPush ;

    /**
     *右梁受压区纵筋面积As（mm^2）
     */
    @UnitTranslate(value = 1000000)
    @Column(name = "beam_right_as_pull")
    @DoubleDecimal
    private double rigthAsPull ;

    /**
     * 梁受拉钢筋牌号
     */
    @Column(name = "beam_stirrup_num")
    private String beamStirrupNum ;

    @Column(name = "entirety_id")
    private String entiretyId ;

    @Column(name = "del_flag")
    private String delFlag ;

    /**todo
     * 梁的跨度
     */
    @Column(name = "beam_span")
    @UnitTranslate
    @DoubleDecimal
    private double beamSpan ;




}
